package test5.editor;

import javax.swing.text.DefaultEditorKit;
import javax.swing.text.Caret;
import javax.swing.text.Document;
import javax.swing.text.ViewFactory;
import javax.swing.*;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Aug 4, 2007
 * Time: 12:44:26 PM
 * Revision: 0
 */
public class JavaEditorKit extends DefaultEditorKit
{
    public static final String GLIDER_CONTENT_TYPE = "text/java";


    public String getContentType()
    {
        return GLIDER_CONTENT_TYPE;
    }

    public ViewFactory getViewFactory()
    {
        return new JavaViewFactory();
    }

    public Action[] getActions()
    {
        return super.getActions();
    }

    public Caret createCaret()
    {
        return super.createCaret();
    }

    public Document createDefaultDocument()
    {
        return new JavaDocument();
    }
}
